package mapred.config;

import org.apache.hadoop.io.compress.CompressionCodec;
import org.apache.hadoop.io.compress.DefaultCodec;
import org.apache.hadoop.io.compress.GzipCodec;

public enum Compress {

    NULL {
        @Override
        public Class<? extends CompressionCodec> getCompressionCodecClass() {
            return null;
        }
    },
    DEFAULT {
        @Override
        public Class<? extends CompressionCodec> getCompressionCodecClass() {
            return DefaultCodec.class;
        }
    },
    GZIP {
        @Override
        public Class<? extends CompressionCodec> getCompressionCodecClass() {
            return GzipCodec.class;
        }
    };

    public abstract Class<? extends CompressionCodec> getCompressionCodecClass();

}
